<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><spring:message code="member.form.title"/></title>
</head>
<body>
<div align="center">
	<img src="<%=request.getContextPath() %>/image/car1.jpg" >
</div>

<form:form commandName="memberCommand" action="login.do" method="post">
<div align="center" style="float: bottom;">
	<font color="red">
	<form:errors element="div"/><!-- 글로벌 에러 받는 태그 -->
	<form:errors path="m_id"/>
	<form:errors path="m_password"/></font>
</div>
<table align="center" border="0">
	<tr>
	<th align="left" bgcolor="#d3d3d3">
 	<spring:message code="member.form.id"/>
 	</th>
 	<td>
	<form:input path="m_id" name="m_id" type="text" value="${m_id}"/>
	</td>
	</tr>
	<tr>
	<th align="left" bgcolor="#d3d3d3">
	<spring:message code="member.form.passwd"/>
	</th>
	<td>
	<form:input path="m_password" name="m_password" type="password" value="${m_password}" />
	</td>
	</tr>
	<tr>
	<td colspan="2" align="center">
	<input type="submit" value="<spring:message code="member.form.submit" />" style="width: 120px;height: 22px"><br>
	</td>
	</tr>
	<tr>
	<td colspan="2" align="center">
	<a href="searchId.do"><spring:message code="member.form.searchid"/></a> | 
	<a href="searchPass.do"><spring:message code="member.form.searchpass"/></a> |
	<a href="insert.do"><spring:message code="member.form.join"/></a>
	</td>
	</tr>
</table>
</form:form>
</body>
</html>